/* 全局样式 */
.app-container {
  min-height: 100vh;
}

.content-container {
  margin: 24px;
  padding: 24px;
  background: #fff;
  min-height: calc(100vh - 112px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
}

#root {
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
}

/* 应用布局 */
.app-layout {
  height: 100vh;
}

.app-layout .ant-layout-header {
  padding: 0 24px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.app-layout .ant-layout-content {
  padding: 24px;
  height: auto;
  min-height: calc(100vh - 64px);
}

/* 特征工厂页面样式 */
.features-page .ant-layout-sider {
  background: #fff;
  border-right: 1px solid #f0f0f0;
}

.features-page .ant-layout-content {
  min-height: calc(100vh - 64px);
  padding: 24px;
  background: #fff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* 上传页面样式 */
.upload-page .dropzone {
  border: 2px dashed #d9d9d9;
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s;
  background: #fafafa;
}

.upload-page .dropzone:hover,
.upload-page .dropzone.active {
  border-color: #40a9ff;
  background: #e6f7ff;
}

.upload-page .preview-container {
  margin-top: 24px;
  max-height: 400px;
  overflow-y: auto;
}

/* 作业页面样式 */
.jobs-page .form-section {
  background: #fafafa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.jobs-page .jobs-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* 模型页面样式 */
.models-page .models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.models-page .model-card {
  transition: all 0.3s;
}

.models-page .model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 结果页面样式 */
.results-page .metrics-card {
  margin-bottom: 24px;
}

.results-page .chart-container {
  height: 400px;
  margin-bottom: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-layout .ant-layout-content {
    padding: 16px;
  }
  
  .features-page .ant-layout-sider {
    display: none;
  }
  
  .models-page .models-grid {
    grid-template-columns: 1fr;
  }
}
